﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FJERP.Model;
using FJERP.DAL;

namespace FJERP.BLL
{
    public class SellStatisticsBLL
    {
        SellStatisticsDAL dal = new SellStatisticsDAL();
        /// <summary>
        /// 根据时间范围查询零售主表
        /// </summary>
        /// <param name="DateStart"></param>
        /// <param name="DateEnd"></param>
        /// <returns></returns>
        public List<Shipments> SearchShipmentsBydate(string DateStart, string DateEnd)
        {
            return dal.SearchShipmentsBydate(DateStart, DateEnd);
        }
        /// <summary>
        /// 总盈利金额
        /// </summary>
        /// <param name="DateStart"></param>
        /// <param name="DateEnd"></param>
        /// <returns></returns>
        public int SumMoney(string DateStart, string DateEnd)
        {
            return dal.SumMoney(DateStart, DateEnd);
        }
        public int OneSumMoney(int id)
        {
            return dal.OneSumMoney(id);
        }
    }
}
